-
Notifications
You must be signed in to change notification settings - Fork 9.1k
HDFS-12431. [JDK17] Upgrade JUnit from 4 to 5 in hadoop-hdfs Part11. #7864
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
🎊 +1 overall
This message was automatically generated. |
Assert.assertEquals("Image file check.", | ||
Joiner.on(",").join(filesToPaths(tc.expectedPurgedImages)), | ||
Joiner.on(",").join(capturedPaths)); | ||
Assertions.assertEquals(Joiner.on(",").join(filesToPaths(tc.expectedPurgedImages)), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Extract to import
@BeforeClass | ||
public static void setUp() { | ||
@BeforeAll | ||
public static void setUp() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check style issue.
@@ -38,7 +39,7 @@ | |||
import static org.apache.hadoop.hdfs.DFSConfigKeys.DFS_NAMENODE_READ_LOCK_REPORTING_THRESHOLD_MS_KEY; | |||
import static org.apache.hadoop.hdfs.DFSConfigKeys.DFS_NAMENODE_SLOWPEER_COLLECT_INTERVAL_KEY; | |||
import static org.apache.hadoop.hdfs.DFSConfigKeys.DFS_NAMENODE_WRITE_LOCK_REPORTING_THRESHOLD_MS_KEY; | |||
import static org.junit.Assert.*; | |||
import static org.junit.jupiter.api.Assertions.*; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
avoid *
@Test(timeout=180000) | ||
public void testEmptyLog() throws IOException { | ||
@MethodSource("data") | ||
@ParameterizedTest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can optimize this part using the @ParameterizedClass annotation, as referenced in #7814.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for your review—I'll update the code right away!
🎊 +1 overall
This message was automatically generated. |
@zhtttylz Thanks for the contribution! LGTM. |
@zhtttylz Thanks for the contribution! Merged into trunk. |
Thanks @slfan1989 help review and merged! |
Description of PR
JIRA:HDFS-12431. Upgrade JUnit from 4 to 5 in hadoop-hdfs Part11.
How was this patch tested?
Junit Test.
For code changes:
LICENSE
,LICENSE-binary
,NOTICE-binary
files?